<%--这个是供号商,查看支付流水的jsp,引入到,spuser-splist里面作为弹窗出现--%>
<!-- Modal 查看账号流水-->
<%@ page language="java" contentType="text/html;charset=utf-8" %>
<!-- Modal 新增模态-->
<style>
    .money{
        color: #00a65a;float: left;
        border:1px solid #f5f5f5;
        padding: 5px;border-radius: 1px;
        margin: 5px;
    }
    .float-left{
        float: left;
    }
    .font22{
        font-size: 18px;
    }
    .font30{
        font-size: 28px;
    }
</style>
<div class="money" id="demoDiv" style="display: none">
    <span class="float-left font22">111</span>
    <button type="button" class="close float-left font30" pk="" name="deleteBtn"><span>&ensp;×</span></button>
</div>
<div class="modal fade" id="spuser_code_detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" >
                    <span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title control-label">当前账号:
                    <span style="font-weight: bold;">个码赵0（ID:32）</span></h4>
            </div>
            <div style="padding:10px 20px;font-size: 16px;color: red">
                <div style="margin: 10px;">已上传金额：</div>
                <div id="moneyContent">

                </div>
                <div style="clear: both"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal" id="cancel">关闭</button>
            </div>
        </div>
    </div>
</div>

<script>

    function onBindClick(){
        $('button[name=deleteBtn]').click(function () {
            var id = $(this).attr('pk');
            $.ajax({
                url: "${pageContext.request.contextPath}/spUser/code/delete?id=" + id,
            type: "DELETE",
            async: true,//true异步 false同步
            context: this,
            timeout: 10000,
            success: function (data) {
                if (data != null && data.code==200) {
                    $(this).parent().remove();
                }else {
                    alert("fail:" + data.message);
                }
            },
            error: function (d, s, b) {
                alert("失败:" + b);
            }
        });
        });
    }
</script>

